package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.DepartmentMapper;
import com.liushuai.eas.pojo.Department;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class DepartmentImp implements DepartmentMapper {

    @Resource
    private DepartmentMapper departmentMapper;

    @Override
    public int insert(Department entity) {
        return departmentMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return departmentMapper.deleteById(id);
    }

    @Override
    public int deleteById(Department entity) {
        return departmentMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Department> queryWrapper) {
        return 0;
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Department entity) {
        return departmentMapper.updateById(entity);
    }

    @Override
    public int update(Department entity, Wrapper<Department> updateWrapper) {
        return 0;
    }

    @Override
    public Department selectById(Serializable id) {
        return departmentMapper.selectById(id);
    }

    @Override
    public List<Department> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Department> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Department selectOne(Wrapper<Department> queryWrapper) {
        return DepartmentMapper.super.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Department> queryWrapper) {
        return null;
    }

    @Override
    public List<Department> selectList(Wrapper<Department> queryWrapper) {
        return departmentMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Department> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Department> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Department>> P selectPage(P page, Wrapper<Department> queryWrapper) {
        return departmentMapper.selectPage(page, queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Department> queryWrapper) {
        return null;
    }

    @Override
    public List<Department> queryDepartmentList() {
        return departmentMapper.queryDepartmentList();
    }

    @Override
    public Department selectOne(Integer id) {
        return departmentMapper.selectOne(id);
    }

    @Override
    public int queryTotal() {
        return departmentMapper.queryTotal();
    }
}
